package control
{
  import flash.display.MovieClip;
  import flash.events.Event;

  public class Panel extends MovieClip
  {
     
    public function Panel()
    {
      super();
      addEventListener(Event.ADDED_TO_STAGE, function ():void {init()})
    }
    
    private function init (): void {
      stage.addEventListener(Event.RESIZE, function ():void {redraw()})
      redraw()
    }

    private function redraw (): void {
      graphics.clear()
      graphics.beginFill(0x000000, 0.8)
      graphics.drawRoundRect(0, 0, stage.stageWidth - 20, 36, 16)
      graphics.endFill()
    }
    
      
  }
}